<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tld/security.tld" prefix="s" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>

<fmt:setBundle basename="messages"/>


<logic:present name="distributionFutureVersionDetailViews">
<table width="70%" style="border-top: 0px #CCCCC0 solid;border-bottom: 1px #CCCCC0 solid;border-top-width: 0px" CELLPADDING="2" CELLSPACING="0" RULES="ROWS" FRAME="HSIDES">
	<tr class="titulocolumna">
		<td style="border-left: 1px solid #CCCCC0;" align="center"><bean:message key="label.versions.future.distribution.version.inquired"/></td>
		<td style="border-left: 1px solid #CCCCC0;" align="center"><bean:message key="message.futurepurchase.ton"/></td>
		<td style="border-left: 1px solid #CCCCC0;" align="center"><bean:message key="label.futurepurchase.query.period"/></td>
		<td style="border-left: 1px solid #CCCCC0;" align="center"><bean:message key="label.versions.future.distribution.version.future.required"/></td>
		<td style="border-left: 1px solid #CCCCC0;" align="center"><bean:message key="label.versions.future.distribution.version.future.price.asign"/></td>
		<td style="border-left: 1px solid #CCCCC0;" align="center"><bean:message key="label.versions.future.distribution.version.future.price.balanced"/></td>
		<td style="border-left: 1px solid #CCCCC0;" align="center"><bean:message key="menu.module.corn.sub.future"/></td>
		<td style="border-left: 1px solid #CCCCC0; border-right: 1px solid #CCCCC0;" align="center"><bean:message key="message.futurepurchase.price"/></td>
	</tr>
	<logic:iterate id="row" name="distributionFutureVersionDetailViews" indexId="int_i">
		<logic:equal name="row" property="repeated" value="false">
			<tr><td  colspan="8" style="border-left: 1px solid #FFFFFF;">&nbsp;</td></tr>
		</logic:equal>		
		<logic:equal name="row" property="repeated" value="false">
			<tr class="columnadatoNon">
		</logic:equal>
		<logic:notEqual name="row" property="repeated" value="false">
			<tr class="columnadatoPar">
		</logic:notEqual>		
	
		<td align="center" style="border-left: 1px solid #CCCCC0;">
			<logic:equal name="row" property="repeated" value="false">
				<bean:write name="row" property="order"/>
			</logic:equal>		
		</td>
		
		<td align="right" style="border-left: 1px solid #CCCCC0;">
			<logic:equal name="row" property="repeated" value="false">
				<bean:write name="row" property="tons"/>
			</logic:equal>
		</td>
		<td align="center" style="border-left: 1px solid #CCCCC0;">
			<logic:equal name="row" property="repeated" value="false">
			<bean:write name="row" property="periodDescription"/>
			</logic:equal>
		</td>
		<td align="right" style="border-left: 1px solid #CCCCC0;">
			<logic:equal name="row" property="repeated" value="false">
			<bean:write name="row" property="futuresRequired"/>
			</logic:equal>
		</td>
		<td align="right" style="border-left: 1px solid #CCCCC0;">
			<logic:equal name="row" property="repeated" value="false">
			<bean:write name="row" property="futuresAssigned"/>
			</logic:equal>
		</td>
		<td align="right" style="border-left: 1px solid #CCCCC0;">
			<logic:equal name="row" property="repeated" value="false">
			<bean:write name="row" property="balanced"/>
			</logic:equal>
		</td>
		
		<td align="right" style="border-left: 1px solid #CCCCC0;"><bean:write name="row" property="futures"/></td>
		<td align="right" style="border-left: 1px solid #CCCCC0;border-right: 1px solid #CCCCC0;"><bean:write name="row" property="price"/></td>		
	</tr>	
	</logic:iterate>	
</table>
</logic:present>

<br />
<br />
<table width="50%" align="center" cellpadding="2" cellspacing="1" border="0" bgcolor="#CCCCC0">
	<tr>		
		<td align="center" class="titulo_lista_interna">
			<html:button property="back" onclick="location.href ='showDistributionFutureVersionList.do'" styleClass="boton"><bean:message key="label.common.back"/></html:button>
		</td>
	</tr>
</table>